package com.exampletest.service;

import com.exampletest.model.Dynamic;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface DynamicService {
    int publishDynamic(Dynamic dynamic);
    int editDynamic(Dynamic dynamic);
    int deleteDynamic(Long id);
    Dynamic getDynamicById(Long id);
    List<Dynamic> getDynamicList(String keyword, String author, Integer status, int offset, int pageSize);
    boolean auditDynamic(Long dynamicId, Integer newStatus, Long auditorId, String auditorName, String auditReason);
    int getTotalCount(String keyword, String author, Integer status);
    Map<String, Object> getAdminDynamicList(String keyword, String author, Integer status, int offset, int pageSize);
    boolean auditDynamic(Long dynamicId, Integer newStatus, String reason);
}